Skip to content

Conversation

@grahamalama
Copy link
Contributor

Since bugzilla.py was a collection of Pydantic BaseModels, in this PR we move them into models.py so that it is the one source of all models used in the app.

@grahamalama grahamalama requested a review from a team as a code owner August 2, 2022 20:56
Copy link
Contributor

@bsieber-mozilla bsieber-mozilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor resolvable comments, overall lgtm!

@grahamalama
Copy link
Contributor Author

grahamalama commented Aug 3, 2022

@bsieber-mozilla

What is annotations used for?

Only import on TYPE_CHECKING? (What value is TYPE_CHECKING? are we expecting this as False?)

I was running into a circular import after making this change, and the only reason for that was an import for the purposes of type hinting. I found this blog post that lead me to add the changes that you called out in your review.

@leplatrem leplatrem added the python Pull requests that update Python code label Aug 3, 2022
@grahamalama grahamalama merged commit 3167795 into main Aug 3, 2022
@grahamalama grahamalama deleted the remove-bugzilla-module branch August 3, 2022 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal-change python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants